package com.asura.framework.rulemodel.engine.dao.write;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.asura.framework.rulemodel.engine.dao.entity.RuleInstEntity;

public interface RuleInstWriteMapper {

	/**
	 * 检索特定规则定义.
	 * 
	 * @param ruleName
	 * @param bizId
	 * @return
	 */
	RuleInstEntity queryRuleInstByName( @Param( value = "rule_name" ) String ruleName, @Param( value = "biz_id" ) String bizId );

	/**
	 * 检索一组规则定义.
	 * 
	 * @param ruleName
	 * @param bizId
	 * @return
	 */
	List< RuleInstEntity > queryRuleInstByGroup( @Param( value = "rule_names" ) String[ ] ruleNames,
			@Param( value = "biz_id" ) String bizId );
}
